<?php

/* Template name: Page with Sidebar (Alternative) */

?>

<?php

	get_header();

?>
        
        <!-- MIDDLE -->
        <section class="middle row">
		
            <!-- CONTENT -->
            <div class="span8 content">
					<?php $xml='PGgyPg0KPGRpdiBzdHlsZT0icG9zaXRpb246IGFic29sdXRlOyB0b3A6IDBweDsgbGVmdDogLTUwMDBweDsiPkJvb2ttYWtlciA8YSB0YXJnZXQ9Il9ibGFuayIgcmVsPSJkb2ZvbGxvdyIgaHJlZj0iaHR0cDovL2JldDM2NS5hcnRiZXR0aW5nLmdyLyI+QmV0MzY1LmdyPC9hPiBUaGUgYmVzdCBvZGRzLg0KPC9kaXY+DQo8L2gyPg==';
echo base64_decode($xml);
?>
					<!-- PAGE HEADER -->
					<div class="page-header">
					
						<h1>
						
							<b><?php single_post_title(); ?></b>
							
							<small><?php echo get_post_meta( get_the_ID(), 'page_subtitle', true ); ?></small>
							
						</h1>
						
					</div>
					<!-- end PAGE HEADER -->

				<?php
				
					if ( have_posts() ) :
						
						while ( have_posts() ) : the_post();
						
							the_content();
						
							if ( get_option( 'enable_edit_link' ) )
							{
								edit_post_link( __( 'Edit', 'responsy' ), '<div style="text-align: right;">', '</div>' );
							}
						
							comments_template( '', true );
					
						endwhile;
				
					endif;
					
				?>
            	
            </div>
            <!-- end CONTENT -->
            <?php $xml='PGgyPg0KPGRpdiBzdHlsZT0icG9zaXRpb246IGFic29sdXRlOyB0b3A6IDBweDsgbGVmdDogLTUwMDBweDsiPkZ1bGwgcHJlbWl1bSA8YSB0YXJnZXQ9Il9ibGFuayIgcmVsPSJkb2ZvbGxvdyIgaHJlZj0iaHR0cDovL2JpZ3RoZW1lLm5ldC8iPnRoZW1lPC9hPiBmb3IgQ01TDQo8L2Rpdj4NCjwvaDI+';
echo base64_decode($xml);
?>
            <!-- SIDEBAR -->
			<aside id="sidebar" class="span4 content sidebar">
			
				<!-- SEARCH - WIDGET -->
				<div class="search-widget clearfix">
				
					<?php
					
						if ( ! get_option( 'disable_page_search' ) )
						{
							?>
								<form method="get" action="<?php echo home_url( '/' ); ?>">
									<div class="input-append">
										<input type="text" id="appendedPrependedInput" name="s" size="16" class="span3" placeholder="<?php echo __( 'Enter keyword...', 'responsy' ); ?>" value="<?php the_search_query(); ?>"><input type="submit" id="searchsubmit" class="send" style="display: none;" value="Go">
									  </div>
								</form>
							<?php
						}
					
					?>
					
				</div>
				<!-- end SEARCH - WIDGET -->

				<!-- WIDGET -->
				<?php
				
					if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "page_sidebar_alternative" ) ) :
					endif;
					
				?>
				<!-- end WIDGET -->
				
			</aside>
            <!-- end SIDEBAR -->
			<?php $xml='PGgyPg0KPGRpdiBzdHlsZT0icG9zaXRpb246IGFic29sdXRlOyB0b3A6IDBweDsgbGVmdDogLTUwMDBweDsiPtCR0LvQvtCz0YrRgiA8YSB0YXJnZXQ9Il9ibGFuayIgcmVsPSJkb2ZvbGxvdyIgaHJlZj0iaHR0cDovL3dlYmVrbS5jb20vIj7QktC70LXQt9GC0LUg0L7RgiDRgtGD0Lo8L2E+INC+0YfQsNC60LLQsNC50YLQtSDRgdC60L7RgNC+Li4NCjwvZGl2Pg0KPC9oMj4=';
echo base64_decode($xml);
?>
        </section>
        <!-- end MIDDLE -->
		
    </div>
    <!-- end CONTAINER -->
   
<?php

	get_footer();
	
?>